package com.mall.sun.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
@ApiModel(value="Orders对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
    @TableId(value = "ordId", type = IdType.AUTO)
    private Integer ordId;

    @ApiModelProperty(value = "用户ID号")
    private Integer userId;

    @ApiModelProperty(value = "商品ID号")
    private Integer gid;

    @ApiModelProperty(value = "购买的商品数量")
    private Integer gcount;

    @ApiModelProperty(value = "收货人")
    private String accepter;

    @ApiModelProperty(value = "收货人联系电话")
    private String tel;

    @ApiModelProperty(value = "送货地址")
    private String address;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总计")
    private Double totalPrice;

    @ApiModelProperty(value = "订单日期")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime orderTime;

    @ApiModelProperty(value = "0-未处理 1-正在找货 2-已发货 3-货已到 4-账单已结 5-退货")
    private Integer state;


}
